package com.android.allwinner.aw360;

/**
 * Created by xiasj on 17-6-9.
 */

public class AW360Command {
    /**
     * 设置摄像头Sensor类型
     *
     * @see #SENSOR_TYPE_1089_OR_3089
     * @see #SENSOR_TYPE_1099_OR_1058
     */
    static final int AW_COMMAND_SET_SENSOR_TYPE = 0;

    /**
     * 设置想想头Lens类型
     *
     * @see #LENS_TYPE_HK8077
     * @see #LENS_TYPE_HAILIN4052
     */
    static final int AW_COMMAND_SET_LENS_TYPE = 1;

    /**
     * 设置现实模式
     */
    static final int AW_COMMAND_SET_DISPLAY_VIEW_MODE = 2;

    /**
     * 设置摄像头制式
     */
    static final int AW_COMMAND_SET_SYSTEM = 3;

    /**
     * 设置车宽
     */
    static final int AW_COMMAND_SET_CAR_WIDTH = 4;

    /**
     * 设置车长
     */
    static final int AW_COMMAND_SET_CAR_HEIGHT = 5;

    /**
     * 设置左右偏移
     */
    static final int AW_COMMAND_SET_SIDE_OFFSET = 6;

    /**
     * 设置前置摄像头镜像
     */
    static final int AW_COMMAND_SET_FRONT_CAMERA_MIRROR = 7;

    /**
     * 设置后置摄像头镜像
     */
    static final int AW_COMMAND_SET_REAR_CAMERA_MIRROR = 8;

    /**
     * 设置左置摄像头镜像
     */
    static final int AW_COMMAND_SET_LEFT_CAMERA_MIRROR = 9;

    /**
     * 设置右置摄像头镜像
     */
    static final int AW_COMMAND_SET_RIGHT_CAMERA_MIRROR = 0xA;

    /**
     * 设置前摄像头横向偏移
     */
    static final int AW_COMMAND_SET_FRONT_CAMERA_OFFSETX = 0xB;
    /**
     * 设置后摄像头横向偏移
     */
    static final int AW_COMMAND_SET_REAR_CAMERA_OFFSETX = 0xC;
    /**
     * 设置左摄像头横向偏移
     */
    static final int AW_COMMAND_SET_LEFT_CAMERA_OFFSETX = 0xD;
    /**
     * 设置右摄像头横向偏移
     */
    static final int AW_COMMAND_SET_RIGHT_CAMERA_OFFSETX = 0xE;
    /**
     * 设置前摄像头纵向偏移
     */
    static final int AW_COMMAND_SET_FRONT_CAMERA_OFFSETY = 0xF;
    /**
     * 设置后摄像头纵向偏移
     */
    static final int AW_COMMAND_SET_REAR_CAMERA_OFFSETY = 0x10;
    /**
     * 设置左摄像头纵向偏移
     */
    static final int AW_COMMAND_SET_LEFT_CAMERA_OFFSETY = 0x11;
    /**
     * 设置右摄像头纵向偏移
     */
    static final int AW_COMMAND_SET_RIGHT_CAMERA_OFFSETY = 0x12;
    /**
     * 设置前摄像头缩放
     */
    static final int AW_COMMAND_SET_FRONT_CAMERA_SCALE = 0x13;
    /**
     * 设置后摄像头缩放
     */
    static final int AW_COMMAND_SET_REAR_CAMERA_SCALE = 0x14;
    /**
     * 设置左摄像头缩放
     */
    static final int AW_COMMAND_SET_LEFT_CAMERA_SCALE = 0x15;
    /**
     * 设置右摄像头缩放
     */
    static final int AW_COMMAND_SET_RIGHT_CAMERA_SCALE = 0x16;
    /**
     * 设置倒车轨迹线
     */
    static final int AW_COMMAND_SET_REVERSE_RULE = 0x17;
    /**
     * 设置摄像头亮度
     */
    static final int AW_COMMAND_SET_CAMERA_LUM = 0x18;
    /**
     * 设置摄像头对比度
     */
    static final int AW_COMMAND_SET_CAMERA_CONTRAST = 0x19;
    /**
     * 设置摄像头饱和度
     */
    static final int AW_COMMAND_SET_CAMERA_SATURATION = 0x1A;
    /**
     * 设置摄像头色调
     */
    static final int AW_COMMAND_SET_CAMERA_HUE = 0x1B;

    /**
     * 设置输出宽度
     * 可以理解为屏幕宽度
     */
    static final int AW_COMMAND_SET_SCREEN_WIDTH = 0X1C;
    /**
     * 设置输出长度
     * 可以理解为屏幕长度
     */
    static final int AW_COMMAND_SET_SCREEN_HEIGHT = 0X1D;

    /**
     * 设置录像模式
     */
    static final int AW_COMMAND_SET_RECORDER_MODE = 0X1E;


    //GET COMMAND
    /**
     * 获取摄像头Sensor类型
     */
    static final int AW_COMMAND_GET_SENSOR_TYPE = 0x1F;

    /**
     * 获取摄像头Lens类型
     */

    static final int AW_COMMAND_GET_LENS_TYPE = 0x20;

    /**
     * 获取全景显示类型
     */
    static final int AW_COMMAND_GET_DISPLAY_VIEW_MODE = 0x21;

    /**
     * 获取摄像头制式
     */
    static final int AW_COMMAND_GET_SYSTEM = 0x22;

    /**
     * 获取车宽
     */
    static final int AW_COMMAND_GET_CAR_WIDTH = 0x23;

    /**
     * 获取车长
     */
    static final int AW_COMMAND_GET_CAR_HEIGHT = 0x24;

    /**
     * 获取左右偏移
     */
    static final int AW_COMMAND_GET_SIDE_OFFSET = 0x25;

    /**
     * 获取前摄像头镜像
     */
    static final int AW_COMMAND_GET_FRONT_CAMERA_MIRROR = 0x26;

    /**
     * 获取后摄像头镜像
     */
    static final int AW_COMMAND_GET_REAR_CAMERA_MIRROR = 0x27;

    /**
     * 获取前摄像头镜像
     */
    static final int AW_COMMAND_GET_LEFT_CAMERA_MIRROR = 0x28;

    /**
     * 获取后摄像头镜像
     */
    static final int AW_COMMAND_GET_RIGHT_CAMERA_MIRROR = 0x29;

    /**
     * 获取前摄像头横向偏移
     */
    static final int AW_COMMAND_GET_FRONT_CAMERA_OFFSETX = 0x2A;
    /**
     * 获取后摄像头横向偏移
     */
    static final int AW_COMMAND_GET_REAR_CAMERA_OFFSETX = 0x2B;
    /**
     * 获取左摄像头横向偏移
     */
    static final int AW_COMMAND_GET_LEFT_CAMERA_OFFSETX = 0x2C;
    /**
     * 获取右摄像头横向偏移
     */
    static final int AW_COMMAND_GET_RIGHT_CAMERA_OFFSETX = 0x2D;
    /**
     * 获取前摄像头纵向偏移
     */
    static final int AW_COMMAND_GET_FRONT_CAMERA_OFFSETY = 0x2E;
    /**
     * 获取后摄像头纵向偏移
     */
    static final int AW_COMMAND_GET_REAR_CAMERA_OFFSETY = 0x2F;
    /**
     * 获取左摄像头纵向偏移
     */
    static final int AW_COMMAND_GET_LEFT_CAMERA_OFFSETY = 0x30;
    /**
     * 获取右摄像头纵向偏移
     */
    static final int AW_COMMAND_GET_RIGHT_CAMERA_OFFSETY = 0x31;
    /**
     * 获取前摄像头缩放
     */
    static final int AW_COMMAND_GET_FRONT_CAMERA_SCALE = 0x32;
    /**
     * 获取后摄像头缩放
     */
    static final int AW_COMMAND_GET_REAR_CAMERA_SCALE = 0x33;
    /**
     * 获取左摄像头缩放
     */
    static final int AW_COMMAND_GET_LEFT_CAMERA_SCALE = 0x34;
    /**
     * 获取右摄像头缩放
     */
    static final int AW_COMMAND_GET_RIGHT_CAMERA_SCALE = 0x35;
    /**
     * 获取倒车轨迹是否显示
     */
    static final int AW_COMMAND_GET_REVERSE_RULE = 0x36;
    /**
     * 获取摄像头亮度
     */
    static final int AW_COMMAND_GET_CAMERA_LUM = 0x37;
    /**
     * 获取摄像头对比度
     */
    static final int AW_COMMAND_GET_CAMERA_CONTRAST = 0x38;
    /**
     * 获取摄像头饱和度
     */
    static final int AW_COMMAND_GET_CAMERA_SATURATION = 0x39;
    /**
     * 获取摄像头色度
     */
    static final int AW_COMMAND_GET_CAMERA_HUE = 0x3A;
    /**
     * 获取预览全景和单路摄像头时汽车的汽车坐标
     */
    static final int AW_COMMAND_GET_MIX_OVERLAY_POS = 0x3B;
    /**
     * 获取预览全景时汽车的汽车坐标
     */
    static final int AW_COMMAND_GET_BD_OVERLAY_POS = 0x3C;
    //add other command
    static final int AW_COMMAND_GET_COMBIND_WIDTH = 0X3D;
    static final int AW_COMMAND_GET_COMBIND_HEIGHT = 0X3E;
    static final int AW_COMMAND_GET_RECORDER_MODE = 0X3F;

    /**
     * 单个镜头校正
     */
    static final int AW_COMMAND_CAMERA_ADJUST = 0x40;

    /**
     * 全景校正
     */
    static final int AW_COMMAND_BIRD_VIEW_ADJUST = 0x41;

    static final int AW_COMMAND_SAVE_DATA = 0X42;
    static final int AW_COMMAND_EXPORT_DATA = 0X43;
    static final int AW_COMMAND_SET_DATA_PATH = 0X44;
    static final int AW_COMMAND_GET_DATA_PATH = 0X45;

    static final int AW_COMMAND_IMPORT_DATA = 0X46;
    static final int AW_COMMAND_ADJUST_CANCEL = 0X47;
    static final int AW_COMMAND_GET_ACTIVATION_STATUS = 0X48;
    static final int AW_COMMAND_SET_VIEW_RANGE = 0X49;
    static final int AW_COMMAND_SET_SV_BV_SHOW = 0X4A;

    static final int AW_COMMAND_GET_CHIPID = 0X4B;
    static final int AW_COMMAND_ACTIVATE = 0X4C;
    static final int AW_COMMAND_SET_FRONT_CAMERA_OFFSETX_VALUE = 0X4D;
    static final int AW_COMMAND_SET_REAR_CAMERA_OFFSETX_VALUE = 0X4E;
    static final int AW_COMMAND_SET_LEFT_CAMERA_OFFSETX_VALUE = 0X4F;
    static final int AW_COMMAND_SET_RIGHT_CAMERA_OFFSETX_VALUE = 0X50;
    static final int AW_COMMAND_SET_FRONT_CAMERA_OFFSETY_VALUE = 0X51;
    static final int AW_COMMAND_SET_REAR_CAMERA_OFFSETY_VALUE = 0X52;
    static final int AW_COMMAND_SET_LEFT_CAMERA_OFFSETY_VALUE = 0X53;
    static final int AW_COMMAND_SET_RIGHT_CAMERA_OFFSETY_VALUE = 0X54;
    static final int AW_COMMAND_SET_FRONT_CAMERA_SCALE_VALUE = 0X55;
    static final int AW_COMMAND_SET_REAR_CAMERA_SCALE_VALUE = 0X56;
    static final int AW_COMMAND_SET_LEFT_CAMERA_SCALE_VALUE = 0X57;
    static final int AW_COMMAND_SET_RIGHT_CAMERA_SCALE_VALUE = 0X58;
    static final int AW_COMMAND_GET_SV_BV_SHOW = 0X59;


    /**
     * 对应1089和3089摄像头
     */
    public static final int SENSOR_TYPE_1089_OR_3089 = 0;
    /**
     * 对应1089和3089摄像头
     */
    public static final int SENSOR_TYPE_1099_OR_1058 = 1;

    /**
     * 华科
     */
    public static final int LENS_TYPE_HK8077 = 0;

    /**
     * 海林
     */
    public static final int LENS_TYPE_HAILIN4052 = 1;


    /**
     * 全景+前摄像头 显示模式
     */
    public static final int AW_DISPLAY_BIRDVIEW_FRONT = 0x1;
    /**
     * 全景+右摄像头 显示模式
     */
    public static final int AW_DISPLAY_BIRDVIEW_RIGHT = 0x2;
    /**
     * 全景+后摄像头 显示模式
     */
    public static final int AW_DISPLAY_BIRDVIEW_REAR = 0x3;
    /**
     * 全景+左摄像头 显示模式
     */
    public static final int AW_DISPLAY_BIRDVIEW_LEFT = 0x4;
    public static final int AW_DISPLAY_BIRDVIEW_LEFT_RIGHT = 0x5;	/*!< Display LEFT + RIGHT*/
    public static final int AW_DISPLAY_BIRDVIEW_LEFT_RIGHTF = 0x6;	/*!< Display LEFT + RIGHT*/
    public static final int AW_DISPLAY_BIRDVIEW_LEFT_RIGHTR = 0x7;	/*!< Display LEFT + RIGHT*/
    /**
     * 全景显示模式
     */
    public static final int AW_DISPLAY_BIRDVIEW_ONLY = 0x8;
    /**
     * 单独显示摄像头前视原始图像
     */
    public static final int AW_DISPLAY_SIDEVIEW_FRONT = 0x9;
    /**
     * 单独显示摄像头右视原始图像
     */
    public static final int AW_DISPLAY_SIDEVIEW_RIGHT = 0xa;
    /**
     * 单独显示摄像头后视原始图像
     */
    public static final int AW_DISPLAY_SIDEVIEW_REAR = 0xb;
    /**
     * 单独显示摄像头左视原始图像
     */
    public static final int AW_DISPLAY_SIDEVIEW_LEFT = 0xc;
    public static final int AW_DISPLAY_FRONT = 0xd;			/*!< Display view only*/
    public static final int AW_DISPLAY_RIGHT = 0xe;			/*!< Display view only*/
    public static final int AW_DISPLAY_REAR = 0xf;			/*!< Display view only*/
    public static final int AW_DISPLAY_LEFT = 0x10;				/*!< Display view only*/
    public static final int AW_DISPLAY_SIDEVIEW_FOUR = 0x11;
    public static final int AW_DISPLAY_DEBUG_FRONT = 0x12;
    public static final int AW_DISPLAY_DEBUG_RIGHT = 0x13;
    public static final int AW_DISPLAY_DEBUG_REAR = 0x14;
    public static final int AW_DISPLAY_DEBUG_LEFT = 0x15;


    /**
     * 显示田字格4路原始图像
     */
    public static final int AW_DISPLAY_SIDEVIEW_ALL = 0x16;

    /**
     * 摄像头制式
     */
    public static final int PAL = 0;
    public static final int NTSC = 1;

    /**
     * 摄像头镜像显示
     */
    public static final int CAMERA_MIRROR = 1;

    /**
     * 摄像头正常显示
     */
    public static final int CAMERA_NORMAL = 0;

    /**
     * 显示倒车轨迹线
     */
    public static final int REVERSE_RULE_SHOW = 1;
    /**
     * 不显示倒车轨迹线
     */
    public static final int REVERSE_RULE_MISS = 0;

    /**
     * 可视范围变远
     */
    public static final int VIEW_RANGE_FAR = 1;
    /**
     * 可视范围变近
     */
    public static final int VIEW_RANGE_NEAR = 0;

    /**
     * 全景视图在左，单目视图在右
     */
    public static final int  BIRD_SIDE_VIEW_MODEL = 1;

    /**
     * 全景视图在右，单目视图在左
     */
    public static final int  SIDE_BIRD_VIEW_MODEL = 0;

}
